package HomeWork;

public class Demo7 {
    public static void main(String[] args) {
        char[][] matrix = {
                {'a', 'b', 'c', 'd', 'e'},
                {'f', 'g', 'h', 'i', 'j'},
                {'k', 'l', 'm', 'n', 'o'},
                {'p', 'q', 'r', 's', 't'},
                {'u', 'v', 'w', 'x', 'y'}
        };
        matrix[0][0] = Character.toUpperCase(matrix[0][0]);
        matrix[1][1] = Character.toUpperCase(matrix[1][1]);
        matrix[2][2] = Character.toUpperCase(matrix[2][2]);
        matrix[3][3] = Character.toUpperCase(matrix[3][3]);
        matrix[4][4] = Character.toUpperCase(matrix[4][4]);
        for (int i = 0; i < matrix.length; i++) {
            for (int j = 0; j < matrix[i].length; j++) {
                System.out.print(matrix[i][j] + " ");
            }
            System.out.println();
        }
    }
}
